package com.woniuxy.mapper;

import com.woniuxy.entity.Car;
import com.woniuxy.entity.CarExample;

import java.util.List;
import java.util.Map;

import com.woniuxy.vo.CarVO;
import org.apache.ibatis.annotations.Param;

public interface CarMapper {
    long countByExample(CarExample example);

    int deleteByExample(CarExample example);

    int deleteByPrimaryKey(Integer carId);

    int insert(Car record);

    int insertSelective(Car record);

    List<Car> selectByExample(CarExample example);

    Car selectByPrimaryKey(Integer carId);

    int updateByExampleSelective(@Param("record") Car record, @Param("example") CarExample example);

    int updateByExample(@Param("record") Car record, @Param("example") CarExample example);

    int updateByPrimaryKeySelective(Car record);

    int updateByPrimaryKey(Car record);

    //条件分页查询
    List<CarVO> selectCarByExample(Map<String, Object> map);

    //统计总条数
    int countCar(Map<String, Object> map);
    //新增返回主键
    int insertCarReturnKey(Car car);
}